package com.reverse.engineering.util.core.run.bean.database.impl;

import com.reverse.engineering.util.core.run.bean.database.DatabasePropertiesInterface;

/**
 * 数据库属性实现类
 * 
 * @author liu
 * @date 2020-08-22
 */
public class DatabaseMysqlPropertiesInterfaceImpl implements DatabasePropertiesInterface {

    public final String SSL = "?useUnicode = true&characterEncoding = UTF-8&serverTimezone = UTC";
    /**数据库引擎*/
    private final String databaseCollate = "InnoDB";
    /**数据库字符集*/
    private final String databaseCharacter = "utf8mb4";
    /**主键名*/
    public final String primaryKey = "primary Key";
    /**自动增长名*/
    public final String autoIncrement = "auto_increment";
    /**主键自动增长语句*/
    private final String autoIncrementSql = "AUTO_INCREMENT=1";

    /**
     * 获取数据库SSL
     * 
     * @return
     */
    @Override
    public String getDatabaseSsl() {
        return getSSL();
    }

    public String getSSL() {
        return SSL;
    }

    @Override
    public String getDatabaseCollate() {
        return databaseCollate;
    }

    @Override
    public String getDatabaseCharacter() {
        return databaseCharacter;
    }

    @Override
    public String getPrimarykey() {
        return primaryKey;
    }

    @Override
    public String getAutoIncrement() {
        return autoIncrement;
    }

    @Override
    public String getAutoIncrementSql() {
        return autoIncrementSql;
    }

}